home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / sushi_re.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2008-09-22  |  1014 b   |  38 lines

  1. function scoreSendDB(game_id, user_id, game_score, game_time)
  2. {
  3.    trace("DB∞ù░Ω▓░");
  4.    var sendVars = new LoadVars();
  5.    var recVars = new LoadVars();
  6.    var rankurl = "http://www.gameangel.com/System/gameangel/game_rank.proc.php";
  7.    sendVars.uid = game_id;
  8.    sendVars.mid = user_id;
  9.    sendVars.pt = game_score;
  10.    sendVars.rt = game_time;
  11.    sendVars.ot1 = _root.ot1;
  12.    sendVars.ot2 = _root.ot2;
  13.    sendVars.ot3 = _root.ot3;
  14.    sendVars.ot4 = _root.ot4;
  15.    sendVars.ot5 = _root.ot5;
  16.    var i = 1;
  17.    while(i < 6)
  18.    {
  19.       if(eval("ot" + i) == null || eval("ot" + i) == undefined || eval("ot" + i) == "")
  20.       {
  21.          sendVars["ot" + i] = "";
  22.       }
  23.       else
  24.       {
  25.          sendVars["ot" + i] = _root["ot" + i];
  26.       }
  27.       i++;
  28.    }
  29.    sendVars.sendAndLoad(rankurl,recVars,"POST");
  30.    recVars.onLoad = function(success)
  31.    {
  32.       _root.AS.gameRankView(recVars.nick,recVars.rank);
  33.       trace(recVars.nick + recVars.rank);
  34.    };
  35. }
  36. trace(this);
  37. this.stop();
  38.